package com.mbrs.repo;

import com.google.gson.Gson;
import erp.viewcached.ViewCachedUpdater;
import org.springframework.stereotype.Component;

/**
 * @author zheng chengdong
 */
@Component
public class MyViewCachedUpdater extends ViewCachedUpdater {

    private Gson gson = new Gson();

    @Override
    protected Object parseEntityFromJson(String entityJson, Class<?> entityClass) {
        return gson.fromJson(entityJson, entityClass);
    }
}
